<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>编辑报文配置</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/static/include/css/style.css">
  <link href="/static/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet"/>
  <link href="/static/css/portlet.css" rel="stylesheet"/>
  <style>
    .form-horizontal .control-label{
      height: 34px;
    }
    .dropdown-menu li{
      position: relative;
    }
    .dropdown-menu .hasChildren .arrow-right{
      position: absolute;
      top: 50%;
      right: 0;
      font-size: 14px;
      margin-top: -5px;
    }
    div#rMenu {position:absolute; visibility:hidden; top:0; background-color: #555;text-align: left;padding: 2px;}
    .error {
      display: block;
      overflow: hidden;
      padding: 0 8px 0 0;
      position: relative;
      color:red;
    }
  </style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">

  <div class="row">
    <div class="portlet light bordered">
      <div class="portlet-title" style="margin-bottom: 10px;">
        <div class="caption font-red">
          <span class="caption-subject bold uppercase">交易码基础数据</span>
        </div>
      </div>
      <div class="portlet-body form">
        <form id="pktConditionForm" class="form-horizontal clear" method="post">

          <div class="form-group col-sm-5">
            <label class="control-label col-sm-4 is-required">项目名称</label>
            <div class="col-sm-8" >
              <select id="pkt_systemCode_select" name="sysId" field="systemCode" class="form-control select2" >
                <option value="">请选择</option>
              </select>
            </div>
          </div>

          <div class="form-group col-sm-5">
            <label class="control-label col-sm-4 is-required">服务名称</label>
            <div class="col-sm-8" style="margin-bottom: 0px;">
              <select id="pkt_groupCode_select" name="groupCode" field="groupCode" class="form-control select2">
                <option value="">请选择</option>
              </select>
            </div>
          </div>

          <div id="pktList_querybtn_div" class="col-sm-2" style="text-align:right;padding-right:20px;">
            <button type="button" onclick="queryPktListFunc()" class="btn btn-primary fa fa-search">查询</button>
          </div>

        </form>
      </div>
    </div>
    <div class="col-md-7">
      <div class="portlet box green">
        <div class="portlet-title">
          <div class="caption">
            <i class="fa fa-gift"></i>报文头配置
          </div>
        </div>
        <div class="portlet-body form">
          <div class="form-body">
            <div class="scroller" style="height: 461px;overflow :auto">
              <ul id="pktList_treeview"  class="ztree" style="height: 460px;overflow:  auto;"></ul>
            </div>
            <div class="form-actions" style="text-align:right;padding: 10px">
              <a id="savePktTree" class="btn btn-primary fa fa-save">保存报文头配置</a>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-5">
      <div class="portlet box blue">
        <div class="portlet-title">
          <div class="caption">
            <i class="fa fa-gift"></i>报文头节点信息
          </div>
        </div>
        <input id="pktType" type="hidden"/>
        <div class="portlet-body form">
          <form id="pkt_node_configForm" class="form-horizontal" method="post">

            <div id="pktnode_div" class="form-body" style="height: 461px;padding-top: 10px;">

            </div>

            <div class="form-actions top right" style="text-align:right;padding: 10px">
              <a class="btn btn-success fa fa-save" onclick="saveNodeInfo()">保存节点配置</a>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>

  <div id="rMenu" style="z-index: 9999;" class="dropup">
    <ul class="dropdown-menu" id="dropdown-menu-parent">
      <li id="m_newNode_div" class="hasChildren">
        <a tabindex="-1" onclick="addNodeSelect()" style="height: 28px;">新增节点 <i class="fa arrow-right"></i></a>
      </li>
      <li><a tabindex="-1" onclick="removeTreeNode()" style="height: 28px;">删除节点</a></li>
      <li><a tabindex="-1" onclick="copyTreeNode()" style="height: 28px;">复制节点</a></li>
      <li><a tabindex="-1" onclick="cutTreeNode()" style="height: 28px;">剪切节点</a></li>
      <li><a tabindex="-1" onclick="postTreeNode()" style="height: 28px;">粘贴节点</a></li>
      <ul class="dropdown-menu" id="dropdown-menu" style="display: none">

      </ul>
    </ul>

  </div>
</div>
<script src="/static/include/js/footer.js"></script>
<script src="/static/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
<script src="/static/pages/pre/code/edit.js"></script>
</body>
</html>
